home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / MAKEDICT.HDR < prev    next >
Text File  |  1994-04-25  |  2KB  |  86 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _MakeDict( cFileSpec ) --> NIL
  8.  
  9. PARAMETERS:
  10.  
  11. cFileSpec: the file extention to use (DEFAULT ALL FILES)
  12.  
  13. SHORT:
  14.  
  15. Create a file structure listing for all files meeting filespec criteria.
  16.  
  17. DESCRIPTION:
  18.  
  19. All dBASE III+ type databases with the extension specified in cFileSpec are
  20. read and their structure is added to a file called DATADICT.TXT in a format
  21. that is compatible with the #xtranslate Directives found in the KLIPPER.CH
  22. header file.  The resulting data dictionary can be used without modification
  23. in your program.
  24.  
  25. If cFileSpec is not specified, the default is ALL files (those that are
  26. database files are included).
  27.  
  28. Note also that dBASE III type extended structure databases are created for
  29. your use.  They have the extention .DFX  You may delete them if they are not
  30. needed.
  31.  
  32. NOTE:
  33.  
  34.  
  35.  
  36. EXAMPLE:
  37.  
  38. _MakeDict('DBF')
  39.  
  40. Result: DATADICT.TXT CONTAINS:
  41.  
  42. <top of file>
  43. // STRUCTURE FOR: IBS_ACT.DBF
  44.  
  45. FILE_BEGIN IBS_ACT.DBF
  46.  
  47.     FLD WORK_ORDER, C,   7
  48.     FLD LOCATION  , N,   3
  49.  
  50. FILE_END IBS_ACT.DBF
  51.  
  52.  
  53. // STRUCTURE FOR: IBS_ACTI.DBF
  54.  
  55. FILE_BEGIN IBS_ACTI.DBF
  56.  
  57.     FLD WORK_ORDER, C,   7
  58.     FLD LOCATION  , N,   3
  59.  
  60. FILE_END IBS_ACTI.DBF
  61.  
  62.  
  63. // STRUCTURE FOR: IBS_USER.DBF
  64.  
  65.  
  66. FILE_BEGIN IBS_USER.DBF
  67.  
  68.     FLD NAME      , C,   8
  69.     FLD FULLNAME  , C,  32
  70.     FLD LOCATION  , N,   3
  71.     FLD LEVEL     , N,   1
  72.     FLD PASSWORD  , C,  16
  73.  
  74. FILE_END IBS_USER.DBF
  75.  
  76. <end of file>
  77.  
  78.  
  79. _MakeDict()
  80.  
  81. Result:  Without any parameter specified, ALL files in the current directory
  82. are scanned to see if they are dBASE III+ compatible databases and are
  83. included in the above file if so.
  84.  
  85. ******************************************************************************/
  86.